﻿@{
	string FlowID = Request.QueryString["flowid"];
	string StepID = Request.QueryString["stepid"];
	string GroupID = Request.QueryString["groupid"];
	string TaskID = Request.QueryString["taskid"];
	string InstanceID = Request.QueryString["instanceid"];
	string DisplayModel = Request.QueryString["display"] ?? "0";
	string DBConnID = "06075250-30dc-4d32-bf97-e922cb30fac8";
	string DBTable = "LIMSInformation";
	string DBTablePK = "ID";
	string DBTableTitle = "";
	if(InstanceID.IsNullOrEmpty()){InstanceID = Request.QueryString["instanceid1"];}
	YJ.Platform.Dictionary BDictionary = new YJ.Platform.Dictionary();
	YJ.Platform.WorkFlow BWorkFlow = new YJ.Platform.WorkFlow();
	YJ.Platform.WorkFlowTask BWorkFlowTask = new YJ.Platform.WorkFlowTask();
	string fieldStatus = BWorkFlow.GetFieldStatus(FlowID, StepID);
	LitJson.JsonData initData = BWorkFlow.GetFormData(DBConnID, DBTable, DBTablePK, InstanceID, fieldStatus, "{\"limsinformation.birthdate\":\"yyyy-MM-dd HH:mm \",\"limsinformation.bloodsamplingdate\":\"yyyy-MM-dd HH:mm \"}");
	string TaskTitle = BWorkFlow.GetFromFieldData(initData, DBTable, DBTableTitle);
}
<link href="~/Scripts/FlowRun/Forms/flowform.css" rel="stylesheet" type="text/css" />
<script src="~/Scripts/FlowRun/Forms/common.js" type="text/javascript" ></script>
<input type="hidden" id="Form_ValidateAlertType" name="Form_ValidateAlertType" value="1" />
<input type="hidden" id="LIMSInformation." name="LIMSInformation." value="@(TaskTitle.IsNullOrEmpty() ? BWorkFlow.GetAutoTaskTitle(FlowID, StepID, Request.QueryString["groupid"]) : TaskTitle)" />
<input type="hidden" id="Form_TitleField" name="Form_TitleField" value="LIMSInformation." />
<input type="hidden" id="Form_DBConnID" name="Form_DBConnID" value="06075250-30dc-4d32-bf97-e922cb30fac8" />
<input type="hidden" id="Form_DBTable" name="Form_DBTable" value="LIMSInformation" />
<input type="hidden" id="Form_DBTablePk" name="Form_DBTablePk" value="ID" />
<input type="hidden" id="Form_DBTableTitle" name="Form_DBTableTitle" value="" />
<input type="hidden" id="Form_AutoSaveData" name="Form_AutoSaveData" value="1" />
<textarea id="Form_DBTableTitleExpression" name="Form_DBTableTitleExpression" style="display:none;width:0;height:0;"></textarea>
<script type="text/javascript">
	var initData = @Html.Raw(BWorkFlow.GetFormDataJsonString(initData));
	var fieldStatus = "1"=="@Request.QueryString["isreadonly"]" ? {} : @Html.Raw(fieldStatus);
	var displayModel = '@DisplayModel';
	$(window).load(function (){
		formrun.initData(initData, "LIMSInformation", fieldStatus, displayModel);
	});
</script>
<script type="text/javascript">$(window).load(function (){
      Selects();
    });
  function Selects() {
     var urls = document.location.toString();
　　　var arrObj = urls.split("?");
      var stepid=null;
      if (arrObj.length >1) {
　　　　　　var arrPara = arrObj[1].split("&");
　　　　　　var arr;

　　　　　　for (var i = 0; i < arrPara.length; i++) {
　　　　　　　　arr = arrPara[i].split("=");

　　　　　　　　if (arr != null && arr[0] == 'iid') {
　　　　　　　　　　stepid=arr[1];
                  document.getElementById("LIMSInformation.SampleReceiveID").value=stepid; 
　　　　　　　　}
　　　　　　}
　　　　}
      }</script><p><input type="hidden" id="LIMSInformation.SampleReceiveID" name="LIMSInformation.SampleReceiveID" isflow="1" type1="flow_hidden" value=""/></p><p><br/></p><p><br/></p><table class="flowformtable tableF table table-bordered" data-sort="sortDisabled" cellspacing="0" cellpadding="0" align="center"><tbody><tr class="firstRow"><th rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="center"><span class="title">信 息 录 入</span></th></tr><tr><th class="titleT" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="titleO">基本信息</p></th></tr><tr class="topTr"><td class="top" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">编号</p><input type="text" type1="flow_serialnumber" id="LIMSInformation.number" maxfiled="" name="LIMSInformation.number" value="" sqlwhere="" length="" isflow="1" class="mytext" title="" readonly="" style="background-color: rgb(232, 232, 232);"/><input type="hidden" value="LIMSInformation.number" name="HasSerialNumber"/><input type="hidden" value="{'formatstring':'','sqlwhere':'','length':'','maxfiled':''}" name="HasSerialNumberConfig_LIMSInformation.number"/></td><td class="top" rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">采血编号</p><input type="text" id="LIMSInformation.BloodSamplingNo" type1="flow_text" name="LIMSInformation.BloodSamplingNo" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">条形码号<br/></p><input type="text" id="LIMSInformation.BarcodeNo" type1="flow_text" name="LIMSInformation.BarcodeNo" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">母亲姓名</p><input type="text" id="LIMSInformation.Name" type1="flow_text" name="LIMSInformation.Name" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">所属地区<br/></p><input type="text" id="LIMSInformation.Area" type1="flow_text" name="LIMSInformation.Area" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">所属医院<br/></p><input type="text" id="LIMSInformation.Hospitals" type1="flow_text" name="LIMSInformation.Hospitals" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">样本属性<br/></p><input type="text" id="LIMSInformation.SampleProperty" type1="flow_text" name="LIMSInformation.SampleProperty" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">婴儿性别<br/></p><input type="text" id="LIMSInformation.Sex" type1="flow_text" name="LIMSInformation.Sex" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">出生日期<br/></p><input type="text" type1="flow_datetime" id="LIMSInformation.BirthDate" name="LIMSInformation.BirthDate" value="@(YJ.Utility.DateTimeNew.ShortDateTime)" format="yyyy-MM-dd HH:mm " defaultvalue="%40(YJ.Utility.DateTimeNew.ShortDateTime)" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">采血日期<br/></p><input type="text" type1="flow_datetime" id="LIMSInformation.BloodSamplingDate" name="LIMSInformation.BloodSamplingDate" value="@(YJ.Utility.DateTimeNew.ShortDateTime)" format="yyyy-MM-dd HH:mm " defaultvalue="%40(YJ.Utility.DateTimeNew.ShortDateTime)" istime="0" daybefor="0" dayafter="0" currentmonth="0" isflow="1" class="mycalendar" title=""/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">联系手机<br/></p><input type="text" id="LIMSInformation.Mobile" type1="flow_text" name="LIMSInformation.Mobile" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">联系电话<br/></p><input type="text" id="LIMSInformation.Phone" type1="flow_text" name="LIMSInformation.Phone" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">居住地址<br/></p><input type="text" id="LIMSInformation.Address" type1="flow_text" name="LIMSInformation.Address" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">分娩方式<br/></p><input type="text" id="LIMSInformation.delivery" type1="flow_text" name="LIMSInformation.delivery" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">婴儿体重<br/></p><input type="text" id="LIMSInformation.weight" type1="flow_text" name="LIMSInformation.weight" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/>克</td><td rowspan="1" colspan="1" style="word-break: break-all;" valign="middle" align="left"><p class="txt">采血人<br/></p><input type="text" id="LIMSInformation.BloodSamplingName" type1="flow_text" name="LIMSInformation.BloodSamplingName" value="" valuetype="0" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">样本质量<br/></p><input type="text" id="LIMSInformation.SampleQuality" type1="flow_text" name="LIMSInformation.SampleQuality" value="" valuetype="1" isflow="1" class="mytext" title="" align="left"/></td></tr><tr><td class="Tradio" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">实验项目</p>@Html.Raw(new YJ.Platform.WorkFlowForm().GetCheckboxFromSql("06075250-30dc-4d32-bf97-e922cb30fac8", "select ProjectsName from LIMSProject", "LIMSInformation.ExperimentProject", "", "isflow='1' type1='flow_checkbox'"))</td></tr><tr class="bottomTr"><td class="bottom" rowspan="1" colspan="2" style="word-break: break-all;" valign="middle" align="left"><p class="txt">备注<br/></p><textarea isflow="1" type1="flow_textarea" id="LIMSInformation.Note" name="LIMSInformation.Note" class="mytext" style=" height:40px;"></textarea></td></tr></tbody></table>